package controller;

import java.util.Date;
import java.util.List;

import javax.ejb.Stateless;
import javax.inject.Inject;

import dao.SalesCardDao;
import entity.Commissioned;
import entity.SalesCard;
@Stateless
public class SalesCardController {

	@Inject SalesCardDao salesCardDao;
	public SalesCard RegisterNewSalesCard(Date date, float amount,Commissioned employee){
		return salesCardDao.CreateSalesCard(date, amount, employee);
	}
	public List<SalesCard> listOfAllSalesCards(Commissioned employee){
		return salesCardDao.listSales(employee);
	}
	public int deleteSalesCard(SalesCard card){
		return salesCardDao.deleteSalesCard(card);
	}
	
	
}
